package com.woniuxy.woniuticket.ordermodule.service;

import com.woniuxy.woniuticket.pojo.CinemaCommentReply;
import com.woniuxy.woniuticket.pojo.MoviesComment;

import java.util.List;

/**
 * Created by Wu xianbo on 2019/6/1
 * 评论service
 */

public interface CommentService {

    //添加评论(消费者评论电影)
    public int addComment(MoviesComment moviesComment,String orderNum);

    //根据用户id查询所有评论
    public List<MoviesComment> findAllByUserId(Integer userId);

    //商家查询所有评论
    public List<MoviesComment> findAllByCinema(Integer cpage, Integer psize,String movieName);

    //根据电影id查询评论
    public List<MoviesComment> findCommentsByMovieId(Integer movieId);

    //回复某一条评论
    public int replyComment(CinemaCommentReply cinemaCommentReply);

    //删除评论
    public int deleteCommentByMovieId(Integer[] commentIds);

}
